package cn.sunzq.springdata.elasticsearch.demo.repositories;

import cn.sunzq.springdata.elasticsearch.demo.document.TempLincolnshireDocument;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * @创建人 孙中泉
 * @创建时间 2021/7/26
 * @描述
 */
@org.springframework.stereotype.Repository
public interface TempLincolnshireRepositories extends Repository<TempLincolnshireDocument, String> {

    TempLincolnshireDocument findById(String id);

    List<TempLincolnshireDocument> findByNameAndYearAndMonth(String name,String year, String month);

    Page<TempLincolnshireDocument> findByName(String name, Pageable pageable);

}
